//后端项目入口文件
const express = require('express');
const app = express();
//设置静态资源目录
app.use(express.static('public'));
//处理post请求
app.use(express.json());
app.use(express.urlencoded({
  extended: true
}));
app.use('/', require('./router'));
app.listen(3000, () => {
  console.log('鲜花网后端服务已经开启......')
});